package com.sinooceangroup.capital.sentinel.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Sentinel 对Feign的支持Demo
 * * fallbackFactory 可以拿到异常信息
 * * fallback 无法拿到异常信息
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/8/6 9:05
 */
@FeignClient(name="productor-service",path = "/productor",fallbackFactory = ProductorFeignClientFallbackFactory.class)
public interface ProductorFeignClient {

    @GetMapping("/api/sentinel-feign")
    String sentinelFeign();
}
